<template>
    <div style="width: 100vw;height: 100vh;overflow: hidden;display: flex">
        <div style="flex: 1">
            <el-image style="width: 100%;height: 100%" fit="cover"
                      src="https://img-baofun.zhhainiao.com/fs/de49b589ca485590777787e556cf8946.jpg"/>
        </div>
      <!-- 中间欢迎文本区域 -->
      <div class="welcome-title">
        <!-- 主标题 -->
        <div style="font-size: 30px; font-weight: bold">欢迎走进缤纷校园论坛天地</div>
        <!-- 副标题，描述论坛的功能 -->
        <div style="margin-top: 10px">于这方论坛小天地，书写独属于你的校园故事，探索未知精彩</div>
        <div style="margin-top: 5px">借论坛之桥，邂逅同校知音，让友谊在校园中悄然绽放</div>
      </div>
        <div class="right-card">
            <router-view v-slot="{ Component }">
                <transition name="el-fade-in-linear" mode="out-in">
                    <component :is="Component" style="height: 100%"/>
                </transition>
            </router-view>
        </div>
    </div>
</template>

<script setup>

</script>

<style scoped>
.right-card {
  width: 400px;
  z-index: 1;
  background-color: var(--el-bg-color);
}

.welcome-title {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
    text-shadow: 0 0 10px black;
}
</style>
